POV-Ray : Newsgroups : povray.general : Problem making macro work right : Re: Problem making macro work right Server Time
8 Aug 2024 06:17:42 EDT (-0400)
  Re: Problem making macro work right  
From: KalleK
Date: 19 Feb 2001 10:18:22
Message: <3a91393e$1@news.povray.org>
Hi Dan!

It's because there are more than one unions in the object{} statement.
That means there are too many - more than one - objects in the
object-statement.
The #while statement in your Grid#macro genereates several unions.
You may make a union of those grid-generated unions:

change
 object {Grid(<2,2,2>,1,.1) pigment{Green}}
to
 object {union { Grid(<2,2,2>,1,.1) }pigment{Green}}

But then you don't need the object-statement. You can just type:
 union { Grid(<2,2,2>,1,.1) }pigment{Green}

cukk


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.